/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ctrl.command;

import java.util.ArrayList;
import perso.Personnage;

/**
 *
 * @author Administrateur
 */
public class CmdCreate extends Command {

    public CmdCreate(Personnage source, int px, int py) {
        super(source, null);
        setEndPosX(px);
        setEndPosY(py);



        //throw new UnsupportedOperationException("Not yet implemented");
    }

    @Override
    public void execute(ArrayList<Personnage> listPerso) {
        getPersoSource().createPerso(listPerso, getEndPosX(), getEndPosY());
        System.out.println("Perso id: "+getPersoSource().id+" creat new perso");

    


                
       // public void creatPerso(ArrayList<Personnage> listperso, int px,int py) {
        
    }
    
}
